@import "../../assets/scss/helper/mixin";

.login-con {
  min-height: 100vh;
  padding: 56px 42px;
  background: url("./img/bg.png") center bottom / contain no-repeat #ffffff;
  > .back {
    position: absolute;
    background: url("./img/back-icon.png") center / 12px auto no-repeat;
    width: 12px;
    height: 22px;
    top: 20px;
    left: 10px;
  }
}

.login-logo {
  width: 100px;
  height: 138px;
  margin: 0 auto;
  display: block;
}

.login-nav {
  font-size: 16px;
  text-align: center;
  line-height: 1;
  display: flex;
  justify-content: center;
  margin: 30px 0 20px;
  a {
    color: #999999;
    padding: 0 16px 10px;
    display: block;
    border-bottom: 2px solid transparent;
    &:first-child {
      margin-right: 80px;
    }
  }
  .router-link-active {
    border-color: #1768b3;
    color: #333333;
  }
}

.login-group {
  border-bottom: 1px solid #ddd;
  display: flex;
  line-height: 44px;
  height: 44px;
  margin-bottom: 6px;
  i {
    display: block;
    width: 36px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 15px auto;
  }
  input {
    flex-grow: 1;
    width: 1%;
    border: none;
    background-color: transparent;
  }
}

.is-danger {
  border-color: #ec0808;
  span {
    color: #ec0808;
  }
}

.is-success {
  border-bottom-color: #06af0a;
  background: url("./img/success.png") right center / 15px auto no-repeat;
}

.login-name i {
  background-image: url("./img/phone_icon.png");
}

.login-pwd {
  background-position: right 32px center;
  i {
    background-image: url("./img/pwd_icon.png");
  }
}

.login-code {
  display: flex;
  .login-group {
    flex-grow: 1;
    width: 1%;
  }
  i {
    background-image: url("./img/code_icon.png");
  }
  button {
    height: 34px;
    border-radius: 18px;
    color: #90bde7;
    background-color: transparent;
    border: 1px solid;
    font-size: 11px;
    padding: 0 12px;
    margin: 8px 0 0 8px;
  }
}

.login-btn {
  display: block;
  width: 100%;
  height: 40px;
  line-height: 40px;
  border-radius: 20px;
  margin-top: 20px;
  color: #ffffff;
  text-align: center;
  i {
    margin: 0 auto;
    width: 22px;
    height: 22px;
    animation: rotating 1.5s linear infinite;
    background: url("./img/waiting_icon.png") center / contain no-repeat;
    display: none;
  }
  &:disabled {
    font-size: 0;
    i {
      display: block;
    }
  }
}

@keyframes rotating {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.btn-blue {
  background-image: linear-gradient(#1c7cd8, #278ce9);
}

.btn-green {
  background-image: linear-gradient(#00c001, #01c702);
}

.pwd-eyes {
  width: 32px;
  background: url("./img/_eyes-open_icon.png") center / 20px auto no-repeat;
  &.on {
    background-image: url("./img/_eyes-closed_icon.png");
  }
}

.pack {
  font-size: 10px;
  line-height: 1;
  padding-left: 12px;
  color: #999999;
  margin-top: 10px;
  text-align: center;
  a {
    color: #90bde7;
  }
  i {
    display: inline-block;
    vertical-align: middle;
    background: url("./img/radio_normal_icon.png") left center / contain no-repeat;
    width: 10px;
    height: 10px;
    margin-right: 4px
  }
  .on {
    background-image: url("./img/radio_checked_icon.png");
  }
}

.reset-title {
  font-size: 16px;
  text-align: center;
  padding: 20px 0;
}

.login-tool {
  text-align: right;
  a {
    font-size: 12px;
    color: #1768b3;
  }
}
